---
id: avatar_accessory
title: Avatar.Accessory
---

import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import {} from "react-native-elements";

This is used for adding an accessory to the Avatar.
Receives either all [Icon](icon#props) or [Image](image#props) props.

## Props

:::note
Includes all [Icon](/docs/documentation/icon#props), [Image](/docs/documentation/image#props), [Text](https://reactnative.dev/docs/text#props) props.
:::

<div class='table-responsive'>

| Name             | Type                                 | Default | Description                                       |
| ---------------- | ------------------------------------ | ------- | ------------------------------------------------- |
| `onLongPress`    | GestureResponderEventHandler         |         | Called when a long-tap gesture is detected.       |
| `onPress`        | GestureResponderEventHandler         |         | Called when a single tap gesture is detected.     |
| `onPressIn`      | GestureResponderEventHandler         |         | Called when a touch is engaged before `onPress`.  |
| `onPressOut`     | GestureResponderEventHandler         |         | Called when a touch is released before `onPress`. |
| `pressableProps` | PressableProps except click handlers | `None`  |                                                   |

</div>
